<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>

<div id="signingForm">
	<div class="span-5">
		<h3>Signing Form</h3>
	</div>
	<div class="span-12">

		<form:form modelAttribute="user">
			<fieldset>
				<legend>Review User information</legend>
		        <div>
					<div class="span-4">
						<label for="name">Name:</label>
					</div>
					<div class="span-7 last">
						<p><form:input path="name" disabled="true" /></p>
						<script type="text/javascript">
							Spring.addDecoration(new Spring.ElementDecoration({
								elementId : "name",
								widgetType : "dijit.form.ValidationTextBox",
								widgetAttrs : { required : true }}));  
						</script>
					</div>
				</div>
				<div>
					<div class="span-4">
						<label for="username">Username:</label>
					</div>
					<div class="span-7 last">
						<p><form:input path="username" disabled="true"/></p>
						<script type="text/javascript">
							Spring.addDecoration(new Spring.ElementDecoration({
								elementId : "username",
								widgetType : "dijit.form.ValidationTextBox",
								widgetAttrs : { required : true }}));  
						</script>
					</div>
				</div>
				<div>
					<div class="span-4">
						<label for="password">Password:</label>
					</div>
					<div class="span-7 last">
						<p><form:password path="password" disabled="true" /></p>
						<script type="text/javascript">
							Spring.addDecoration(new Spring.ElementDecoration({
								elementId : "password",
								widgetType : "dijit.form.ValidationTextBox",
								widgetAttrs : { required : true }}));  
						</script>
					</div>
				</div>
				<div>
					<p>
					<button type="submit" name="_eventId_confirm">Confirm!</button>
					<button type="submit" name="_eventId_revise" >Revise</button>
					<button type="submit" name="_eventId_cancel" >Cancel</button>
					</p>
					<script type="text/javascript">
						Spring.addDecoration(new Spring.ValidateAllDecoration({elementId:'proceed', event:'onclick'}));
						Spring.addDecoration(new Spring.AjaxEventDecoration({elementId:'proceed',event:'onclick',formId:'user',params:{fragments:'body'}}));
					</script>
				</div>
			</fieldset>
		</form:form>	
	</div>
</div>







